﻿using BMS.Entity.Dictionary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BMS.IRepository
{
    public interface IDictionaryValueRepository :IBaseRepository<DictionaryValue>
    {
        /// <summary>
        /// 根据ID查询字典项
        /// </summary>
        /// <param name="id">ID</param>
        /// <returns></returns>
        public Task<DictionaryValue> GetDictionaryValueById(int id);
        /// <summary>
        /// 根据ID差字典项集合
        /// </summary>
        /// <param name="ids">ID集合</param>
        /// <returns></returns>
        public Task<List<DictionaryValue>> GetDictionaryValueById(IEnumerable<int> ids);
        /// <summary>
        /// 根据字典主表ID查询字典从表信息集合
        /// </summary>
        /// <param name="id">主表主键</param>
        /// <returns></returns>
        public Task<List<DictionaryValue>> GetDictionaryValueByKeyId(int id);
    }
}
